package com.key.win.business.chat.service;

import com.key.win.business.chat.eums.ImMessageTargetEnum;
import com.key.win.business.chat.session.ChatSession;
import com.key.win.business.chat.vo.ImMessageChatVo;
import com.key.win.business.chat.vo.ImMessageChatGroupInVo;
import com.key.win.business.chat.vo.ImMessageChatFriendInVo;

import java.io.IOException;
import java.util.List;

public interface ImChatService {

     void friendChat(ImMessageChatFriendInVo imMessageTokenVo);

     void groupChat(ImMessageChatGroupInVo imMessageChatGroupInVo);

     List<ChatSession> getAllChatSession() throws IOException;

    void addChat(ImMessageTargetEnum type, String id);

    void sendMessageToChat(ImMessageChatVo imMessageChatVo);
}
